<template>
  <div class="skeleton-wrapper">
    <div class="skeleton-header"></div>
    <div class="skeleton-map"></div>

  </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue';

export default defineComponent({
  name: "SkeletonHome",
});
</script>

<style scoped lang="scss">
.skeleton-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #f8f9fa;
  display: flex;
  flex-direction: column;
  z-index: 9999;
}

.skeleton-header {
  height: 80px;
  margin: 20px auto;
  width: 18%;
  background: linear-gradient(90deg, #e9ecef 25%, #dee2e6 37%, #e9ecef 63%);
  background-size: 400% 100%;
  animation: loading 1.4s ease infinite;
  border-radius: 6px;
}

.skeleton-map {
  flex: 1;
  margin: 10px;
  border-radius: 8px;
  background: linear-gradient(90deg, #e9ecef 25%, #dee2e6 37%, #e9ecef 63%);
  background-size: 400% 100%;
  animation: loading 1.4s ease infinite;
}

.skeleton-footer {
  height: 30px;
  margin: 10px auto;
  width: 30%;
  background: linear-gradient(90deg, #e9ecef 25%, #dee2e6 37%, #e9ecef 63%);
  background-size: 400% 100%;
  animation: loading 1.4s ease infinite;
  border-radius: 6px;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}
</style>